package dev.xesam.androidkit.utils;

import android.os.Build;
import android.os.Environment;

/**
 * Created by xesamguo@gmail.com on 15-7-22.
 */
public final class EnvironmentUtil {
    public static boolean isExternalStorageEmulated() {
        if (Build.VERSION.SDK_INT >= 11) {
            return Environment.isExternalStorageEmulated();
        } else {
            String status = Environment.getExternalStorageState();
            return status.equals(Environment.MEDIA_MOUNTED);
        }
    }
}
